
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/PartInspectionMsg/partInspectionMsg" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="partInspectionMsg" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label >送检时间：</label>&nbsp;
            <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd"  data-toggle="datepicker" placeholder="FROM">
            <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;

            %{--<g:select name="checkinByName" from="${partInspectionMsgCheckInByName}" data-toggle="selectpicker" data-live-search="true" optionKey="checkin_by_name" optionValue="checkin_by_name" value="${checkinByName}" noSelection="['':'ALL']" />&nbsp;--}%
            <label >接收人：</label>&nbsp;
            <input type="text" name="checkinBy" value="${checkinBy}"/>
            %{--<g:select name="checkinBy" from="${partInspectionMsgCheckInBy}" data-toggle="selectpicker" data-live-search="true" optionKey="checkin_by" optionValue="checkin_by" value="${checkinBy}" noSelection="['':'ALL']" />&nbsp;<br/>--}%

            <label >批号：</label>&nbsp;
            <input type="text" name="lotId" value="${lotId}"/> <br/>

            %{--<g:select name="gflb" from="${partInspectionMsgGFLB}" data-toggle="selectpicker" data-live-search="true" optionKey="gongfenleibie" optionValue="gongfenleibie" value="${gflb}" noSelection="['':'ALL']" />&nbsp;--}%
            <label >检查结束时间：</label>&nbsp;
            <input type="text" name="start" value="${start}" data-pattern="yyyy-MM-dd"  data-toggle="datepicker" placeholder="FROM">
            <input type="text" name="end" value="${end}" data-pattern="yyyy-MM-dd" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;<br/>
            <label >检验员工号：</label>&nbsp;
            <input type="text" name="checkoutByName" value="${checkoutByName}"/>
            %{--<g:select name="checkoutByName" from="${partInspectionMsgCheckOutByName}" data-toggle="selectpicker" data-live-search="true" optionKey="checkout_by" optionValue="checkout_by" value="${checkoutByName}" noSelection="['':'ALL']" />&nbsp;--}%
            <label >检验员：</label>&nbsp;
            <input type="text" name="checkoutBy" value="${checkoutBy}"/>
            %{--<g:select name="checkoutBy" from="${partInspectionMsgCheckOutBy}" data-toggle="selectpicker" data-live-search="true" optionKey="checkout_by" optionValue="checkout_by" value="${checkoutBy}" noSelection="['':'ALL']" />&nbsp;--}%


            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/OutsourcedProcessing/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="panel-body">
    <div style="mini-width:400px;height:450px;" id="cellGlassOutputDiv"></div>
</div>

<div class="bjui-pageContent">
    <g:if test="${partInspectionMsg.size() > 0}">
        <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <th  width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${partInspectionMsg.size()>0}">
                <g:each in="${partInspectionMsg}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance!='RN'&&headInstance!='NORMAL_OUTQTY'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:if>
                            <g:elseif test="${headInstance=='NORMAL_OUTQTY'}">
                                <td name="${'td'+i}">${dataInstance["${headInstance}"]}</td>
                            </g:elseif>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
            </tbody>
        </table>
    </g:if>
</div>
<g:render template="../template/pagination" />
